<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var datagrid;
	var model_name = "/user";
	var model_title="用户管理";
	$(function() {
		datagrid=$('#form_datagrid').datagrid({
		 	url:model_name+'/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:100,checkbox:true},
		        {field:'phone',title:'手机号',width:120},
		        {field:'name',title:'昵称',width:120},
		        {field:'head',title:'用户头像',width:160,
		        	formatter:function(value,row,index){
		        	if(value)
		        	return "<span url='"+value+"' style='cursor:pointer;color:blue;'  onmouseover='hoverShow(this);'onmouseout='$(\"#imgShow\").hide();'>"+value+"</span>";
		        }},
		        {field:'email',title:'邮箱',width:160},
		        {field:'role',title:'角色',width:80,
		      		formatter:function(value,row,index){
			      		if(row.role=='CUSTOMER'){
			      			return "普通用户";
			      		}else if(row.role=='MERCHANT'){
			      			return "商户";
			      		}
					}
				},
		        {field:'status',title:'状态',width:80,
		      		formatter:function(value,row,index){
			      		if(row.status==1){
			      			return "正常";
			      		}else{
			      			return "<font color='red'>冻结</font>";
			      		}
					}
				},
		        {field:'created_time',title:'创建时间',width:200}
		    ]]
		})
	})
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>
</head>
	<#include "/common/seach.html" />
	<@seach>
	<td>昵称</td>
	<td><input type="text" name="LIKE_u.name"></li></td>
	<td>手机号</td>
	<td><input type="text" name="EQ_u.phone"></li></td>
	</@seach>
</@layout>